#include "videowallform.h"

#include <QVBoxLayout>
#include <QStyleOption>
#include <QLabel>
#include <QPainter>

VideoWallForm::VideoWallForm(QWidget *parent) :
    QWidget(parent)
{
       setObjectName("VideoWallForm");

    QLabel *label=new QLabel(tr("Video Wall"));
    label->setObjectName("VideoWallFormLabel");
    label->setFixedHeight(20);
//    label->setStyleSheet("background-color: green");
    m_pOperateWdg=new QWidget;
    m_pOperateWdg->setObjectName("m_pOperateWdg");
    m_pOperateWdg->setStyleSheet("background-color:lightYellow");
    QVBoxLayout *layout=new QVBoxLayout;
    layout->setMargin(5);
    layout->addWidget(label);
    layout->addWidget(m_pOperateWdg,1);
    setLayout(layout);
}

VideoWallForm::~VideoWallForm()
{

}

void VideoWallForm::paintEvent(QPaintEvent *event)
{
    Q_UNUSED(event);

    QStyleOption opt;
    opt.init(this);
    QPainter p(this);
    style()->drawPrimitive(QStyle::PE_Widget, &opt, &p, this);
}
